﻿using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Maticsoft.DBUtility;//Please add references
namespace DAL
{
	/// <summary>
	/// 数据访问类:Users
	/// </summary>
	public partial class Users
	{
		public Users()
		{}
		#region  Method

		/// <summary>
		/// 得到最大ID
		/// </summary>
		public int GetMaxId()
		{
		return DbHelperSQL.GetMaxID("ID", "Users"); 
		}

		/// <summary>
		/// 是否存在该记录
		/// </summary>
		public bool Exists(int ID)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select count(1) from Users");
			strSql.Append(" where ID=@ID");
			SqlParameter[] parameters = {
					new SqlParameter("@ID", SqlDbType.Int,4)
};
			parameters[0].Value = ID;

			return DbHelperSQL.Exists(strSql.ToString(),parameters);
		}


		/// <summary>
		/// 增加一条数据
		/// </summary>
		public int Add(Model.Users model)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("insert into Users(");
			strSql.Append("MembeLoginName,MemberName,MembePassWord,Phone,QQ,Pic,Sex,Birthday,Address,Description,CreateUserID,CreateTime,ModifiedUserID,ModifiedDateTime,UserTypeID,SchoolID,RoomID,ClassID,State,XiaoQuCount,RoomCount,ClassCount,UploadsCount,OverXiaoQuCount,OverRoomCount,OverClassCount,OverUploadsCount,Remark,Remark2,Remark3)");
			strSql.Append(" values (");
			strSql.Append("@MembeLoginName,@MemberName,@MembePassWord,@Phone,@QQ,@Pic,@Sex,@Birthday,@Address,@Description,@CreateUserID,@CreateTime,@ModifiedUserID,@ModifiedDateTime,@UserTypeID,@SchoolID,@RoomID,@ClassID,@State,@XiaoQuCount,@RoomCount,@ClassCount,@UploadsCount,@OverXiaoQuCount,@OverRoomCount,@OverClassCount,@OverUploadsCount,@Remark,@Remark2,@Remark3)");
			strSql.Append(";select @@IDENTITY");
			SqlParameter[] parameters = {
					new SqlParameter("@MembeLoginName", SqlDbType.VarChar,100),
					new SqlParameter("@MemberName", SqlDbType.NVarChar,200),
					new SqlParameter("@MembePassWord", SqlDbType.VarChar,200),
					new SqlParameter("@Phone", SqlDbType.VarChar,100),
					new SqlParameter("@QQ", SqlDbType.VarChar,100),
					new SqlParameter("@Pic", SqlDbType.VarChar,50),
					new SqlParameter("@Sex", SqlDbType.Int,4),
					new SqlParameter("@Birthday", SqlDbType.DateTime),
					new SqlParameter("@Address", SqlDbType.NVarChar,500),
					new SqlParameter("@Description", SqlDbType.NVarChar),
					new SqlParameter("@CreateUserID", SqlDbType.Int,4),
					new SqlParameter("@CreateTime", SqlDbType.DateTime),
					new SqlParameter("@ModifiedUserID", SqlDbType.Int,4),
					new SqlParameter("@ModifiedDateTime", SqlDbType.DateTime),
					new SqlParameter("@UserTypeID", SqlDbType.Int,4),
					new SqlParameter("@SchoolID", SqlDbType.Int,4),
					new SqlParameter("@RoomID", SqlDbType.VarChar,200),
					new SqlParameter("@ClassID", SqlDbType.VarChar,200),
					new SqlParameter("@State", SqlDbType.Int,4),
					new SqlParameter("@XiaoQuCount", SqlDbType.Int,4),
					new SqlParameter("@RoomCount", SqlDbType.Int,4),
					new SqlParameter("@ClassCount", SqlDbType.Int,4),
					new SqlParameter("@UploadsCount", SqlDbType.Int,4),
					new SqlParameter("@OverXiaoQuCount", SqlDbType.Int,4),
					new SqlParameter("@OverRoomCount", SqlDbType.Int,4),
					new SqlParameter("@OverClassCount", SqlDbType.Int,4),
					new SqlParameter("@OverUploadsCount", SqlDbType.Int,4),
					new SqlParameter("@Remark", SqlDbType.NVarChar),
					new SqlParameter("@Remark2", SqlDbType.Int,4),
					new SqlParameter("@Remark3", SqlDbType.Int,4)};
			parameters[0].Value = model.MembeLoginName;
			parameters[1].Value = model.MemberName;
			parameters[2].Value = model.MembePassWord;
			parameters[3].Value = model.Phone;
			parameters[4].Value = model.QQ;
			parameters[5].Value = model.Pic;
			parameters[6].Value = model.Sex;
			parameters[7].Value = model.Birthday;
			parameters[8].Value = model.Address;
			parameters[9].Value = model.Description;
			parameters[10].Value = model.CreateUserID;
			parameters[11].Value = model.CreateTime;
			parameters[12].Value = model.ModifiedUserID;
			parameters[13].Value = model.ModifiedDateTime;
			parameters[14].Value = model.UserTypeID;
			parameters[15].Value = model.SchoolID;
			parameters[16].Value = model.RoomID;
			parameters[17].Value = model.ClassID;
			parameters[18].Value = model.State;
			parameters[19].Value = model.XiaoQuCount;
			parameters[20].Value = model.RoomCount;
			parameters[21].Value = model.ClassCount;
			parameters[22].Value = model.UploadsCount;
			parameters[23].Value = model.OverXiaoQuCount;
			parameters[24].Value = model.OverRoomCount;
			parameters[25].Value = model.OverClassCount;
			parameters[26].Value = model.OverUploadsCount;
			parameters[27].Value = model.Remark;
			parameters[28].Value = model.Remark2;
			parameters[29].Value = model.Remark3;

			object obj = DbHelperSQL.GetSingle(strSql.ToString(),parameters);
			if (obj == null)
			{
				return 0;
			}
			else
			{
				return Convert.ToInt32(obj);
			}
		}
		/// <summary>
		/// 更新一条数据
		/// </summary>
		public bool Update(Model.Users model)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("update Users set ");
			strSql.Append("MembeLoginName=@MembeLoginName,");
			strSql.Append("MemberName=@MemberName,");
			strSql.Append("MembePassWord=@MembePassWord,");
			strSql.Append("Phone=@Phone,");
			strSql.Append("QQ=@QQ,");
			strSql.Append("Pic=@Pic,");
			strSql.Append("Sex=@Sex,");
			strSql.Append("Birthday=@Birthday,");
			strSql.Append("Address=@Address,");
			strSql.Append("Description=@Description,");
			strSql.Append("CreateUserID=@CreateUserID,");
			strSql.Append("CreateTime=@CreateTime,");
			strSql.Append("ModifiedUserID=@ModifiedUserID,");
			strSql.Append("ModifiedDateTime=@ModifiedDateTime,");
			strSql.Append("UserTypeID=@UserTypeID,");
			strSql.Append("SchoolID=@SchoolID,");
			strSql.Append("RoomID=@RoomID,");
			strSql.Append("ClassID=@ClassID,");
			strSql.Append("State=@State,");
			strSql.Append("XiaoQuCount=@XiaoQuCount,");
			strSql.Append("RoomCount=@RoomCount,");
			strSql.Append("ClassCount=@ClassCount,");
			strSql.Append("UploadsCount=@UploadsCount,");
			strSql.Append("OverXiaoQuCount=@OverXiaoQuCount,");
			strSql.Append("OverRoomCount=@OverRoomCount,");
			strSql.Append("OverClassCount=@OverClassCount,");
			strSql.Append("OverUploadsCount=@OverUploadsCount,");
			strSql.Append("Remark=@Remark,");
			strSql.Append("Remark2=@Remark2,");
			strSql.Append("Remark3=@Remark3");
			strSql.Append(" where ID=@ID");
			SqlParameter[] parameters = {
					new SqlParameter("@MembeLoginName", SqlDbType.VarChar,100),
					new SqlParameter("@MemberName", SqlDbType.NVarChar,200),
					new SqlParameter("@MembePassWord", SqlDbType.VarChar,200),
					new SqlParameter("@Phone", SqlDbType.VarChar,100),
					new SqlParameter("@QQ", SqlDbType.VarChar,100),
					new SqlParameter("@Pic", SqlDbType.VarChar,50),
					new SqlParameter("@Sex", SqlDbType.Int,4),
					new SqlParameter("@Birthday", SqlDbType.DateTime),
					new SqlParameter("@Address", SqlDbType.NVarChar,500),
					new SqlParameter("@Description", SqlDbType.NVarChar),
					new SqlParameter("@CreateUserID", SqlDbType.Int,4),
					new SqlParameter("@CreateTime", SqlDbType.DateTime),
					new SqlParameter("@ModifiedUserID", SqlDbType.Int,4),
					new SqlParameter("@ModifiedDateTime", SqlDbType.DateTime),
					new SqlParameter("@UserTypeID", SqlDbType.Int,4),
					new SqlParameter("@SchoolID", SqlDbType.Int,4),
					new SqlParameter("@RoomID", SqlDbType.VarChar,200),
					new SqlParameter("@ClassID", SqlDbType.VarChar,200),
					new SqlParameter("@State", SqlDbType.Int,4),
					new SqlParameter("@XiaoQuCount", SqlDbType.Int,4),
					new SqlParameter("@RoomCount", SqlDbType.Int,4),
					new SqlParameter("@ClassCount", SqlDbType.Int,4),
					new SqlParameter("@UploadsCount", SqlDbType.Int,4),
					new SqlParameter("@OverXiaoQuCount", SqlDbType.Int,4),
					new SqlParameter("@OverRoomCount", SqlDbType.Int,4),
					new SqlParameter("@OverClassCount", SqlDbType.Int,4),
					new SqlParameter("@OverUploadsCount", SqlDbType.Int,4),
					new SqlParameter("@Remark", SqlDbType.NVarChar),
					new SqlParameter("@Remark2", SqlDbType.Int,4),
					new SqlParameter("@Remark3", SqlDbType.Int,4),
					new SqlParameter("@ID", SqlDbType.Int,4)};
			parameters[0].Value = model.MembeLoginName;
			parameters[1].Value = model.MemberName;
			parameters[2].Value = model.MembePassWord;
			parameters[3].Value = model.Phone;
			parameters[4].Value = model.QQ;
			parameters[5].Value = model.Pic;
			parameters[6].Value = model.Sex;
			parameters[7].Value = model.Birthday;
			parameters[8].Value = model.Address;
			parameters[9].Value = model.Description;
			parameters[10].Value = model.CreateUserID;
			parameters[11].Value = model.CreateTime;
			parameters[12].Value = model.ModifiedUserID;
			parameters[13].Value = model.ModifiedDateTime;
			parameters[14].Value = model.UserTypeID;
			parameters[15].Value = model.SchoolID;
			parameters[16].Value = model.RoomID;
			parameters[17].Value = model.ClassID;
			parameters[18].Value = model.State;
			parameters[19].Value = model.XiaoQuCount;
			parameters[20].Value = model.RoomCount;
			parameters[21].Value = model.ClassCount;
			parameters[22].Value = model.UploadsCount;
			parameters[23].Value = model.OverXiaoQuCount;
			parameters[24].Value = model.OverRoomCount;
			parameters[25].Value = model.OverClassCount;
			parameters[26].Value = model.OverUploadsCount;
			parameters[27].Value = model.Remark;
			parameters[28].Value = model.Remark2;
			parameters[29].Value = model.Remark3;
			parameters[30].Value = model.ID;

			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}

		/// <summary>
		/// 删除一条数据
		/// </summary>
		public bool Delete(int ID)
		{
			
			StringBuilder strSql=new StringBuilder();
			strSql.Append("delete from Users ");
			strSql.Append(" where ID=@ID");
			SqlParameter[] parameters = {
					new SqlParameter("@ID", SqlDbType.Int,4)
};
			parameters[0].Value = ID;

			int rows=DbHelperSQL.ExecuteSql(strSql.ToString(),parameters);
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}
		/// <summary>
		/// 批量删除数据
		/// </summary>
		public bool DeleteList(string IDlist )
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("delete from Users ");
			strSql.Append(" where ID in ("+IDlist + ")  ");
			int rows=DbHelperSQL.ExecuteSql(strSql.ToString());
			if (rows > 0)
			{
				return true;
			}
			else
			{
				return false;
			}
		}


		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public Model.Users GetModel(int ID)
		{
			
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select  top 1 ID,MembeLoginName,MemberName,MembePassWord,Phone,QQ,Pic,Sex,Birthday,Address,Description,CreateUserID,CreateTime,ModifiedUserID,ModifiedDateTime,UserTypeID,SchoolID,RoomID,ClassID,State,XiaoQuCount,RoomCount,ClassCount,UploadsCount,OverXiaoQuCount,OverRoomCount,OverClassCount,OverUploadsCount,Remark,Remark2,Remark3 from Users ");
			strSql.Append(" where ID=@ID");
			SqlParameter[] parameters = {
					new SqlParameter("@ID", SqlDbType.Int,4)
};
			parameters[0].Value = ID;

			Model.Users model=new Model.Users();
			DataSet ds=DbHelperSQL.Query(strSql.ToString(),parameters);
			if(ds.Tables[0].Rows.Count>0)
			{
				if(ds.Tables[0].Rows[0]["ID"]!=null && ds.Tables[0].Rows[0]["ID"].ToString()!="")
				{
					model.ID=int.Parse(ds.Tables[0].Rows[0]["ID"].ToString());
				}
				if(ds.Tables[0].Rows[0]["MembeLoginName"]!=null && ds.Tables[0].Rows[0]["MembeLoginName"].ToString()!="")
				{
					model.MembeLoginName=ds.Tables[0].Rows[0]["MembeLoginName"].ToString();
				}
				if(ds.Tables[0].Rows[0]["MemberName"]!=null && ds.Tables[0].Rows[0]["MemberName"].ToString()!="")
				{
					model.MemberName=ds.Tables[0].Rows[0]["MemberName"].ToString();
				}
				if(ds.Tables[0].Rows[0]["MembePassWord"]!=null && ds.Tables[0].Rows[0]["MembePassWord"].ToString()!="")
				{
					model.MembePassWord=ds.Tables[0].Rows[0]["MembePassWord"].ToString();
				}
				if(ds.Tables[0].Rows[0]["Phone"]!=null && ds.Tables[0].Rows[0]["Phone"].ToString()!="")
				{
					model.Phone=ds.Tables[0].Rows[0]["Phone"].ToString();
				}
				if(ds.Tables[0].Rows[0]["QQ"]!=null && ds.Tables[0].Rows[0]["QQ"].ToString()!="")
				{
					model.QQ=ds.Tables[0].Rows[0]["QQ"].ToString();
				}
				if(ds.Tables[0].Rows[0]["Pic"]!=null && ds.Tables[0].Rows[0]["Pic"].ToString()!="")
				{
					model.Pic=ds.Tables[0].Rows[0]["Pic"].ToString();
				}
				if(ds.Tables[0].Rows[0]["Sex"]!=null && ds.Tables[0].Rows[0]["Sex"].ToString()!="")
				{
					model.Sex=int.Parse(ds.Tables[0].Rows[0]["Sex"].ToString());
				}
				if(ds.Tables[0].Rows[0]["Birthday"]!=null && ds.Tables[0].Rows[0]["Birthday"].ToString()!="")
				{
					model.Birthday=DateTime.Parse(ds.Tables[0].Rows[0]["Birthday"].ToString());
				}
				if(ds.Tables[0].Rows[0]["Address"]!=null && ds.Tables[0].Rows[0]["Address"].ToString()!="")
				{
					model.Address=ds.Tables[0].Rows[0]["Address"].ToString();
				}
				if(ds.Tables[0].Rows[0]["Description"]!=null && ds.Tables[0].Rows[0]["Description"].ToString()!="")
				{
					model.Description=ds.Tables[0].Rows[0]["Description"].ToString();
				}
				if(ds.Tables[0].Rows[0]["CreateUserID"]!=null && ds.Tables[0].Rows[0]["CreateUserID"].ToString()!="")
				{
					model.CreateUserID=int.Parse(ds.Tables[0].Rows[0]["CreateUserID"].ToString());
				}
				if(ds.Tables[0].Rows[0]["CreateTime"]!=null && ds.Tables[0].Rows[0]["CreateTime"].ToString()!="")
				{
					model.CreateTime=DateTime.Parse(ds.Tables[0].Rows[0]["CreateTime"].ToString());
				}
				if(ds.Tables[0].Rows[0]["ModifiedUserID"]!=null && ds.Tables[0].Rows[0]["ModifiedUserID"].ToString()!="")
				{
					model.ModifiedUserID=int.Parse(ds.Tables[0].Rows[0]["ModifiedUserID"].ToString());
				}
				if(ds.Tables[0].Rows[0]["ModifiedDateTime"]!=null && ds.Tables[0].Rows[0]["ModifiedDateTime"].ToString()!="")
				{
					model.ModifiedDateTime=DateTime.Parse(ds.Tables[0].Rows[0]["ModifiedDateTime"].ToString());
				}
				if(ds.Tables[0].Rows[0]["UserTypeID"]!=null && ds.Tables[0].Rows[0]["UserTypeID"].ToString()!="")
				{
					model.UserTypeID=int.Parse(ds.Tables[0].Rows[0]["UserTypeID"].ToString());
				}
				if(ds.Tables[0].Rows[0]["SchoolID"]!=null && ds.Tables[0].Rows[0]["SchoolID"].ToString()!="")
				{
					model.SchoolID=int.Parse(ds.Tables[0].Rows[0]["SchoolID"].ToString());
				}
				if(ds.Tables[0].Rows[0]["RoomID"]!=null && ds.Tables[0].Rows[0]["RoomID"].ToString()!="")
				{
					model.RoomID=ds.Tables[0].Rows[0]["RoomID"].ToString();
				}
				if(ds.Tables[0].Rows[0]["ClassID"]!=null && ds.Tables[0].Rows[0]["ClassID"].ToString()!="")
				{
					model.ClassID=ds.Tables[0].Rows[0]["ClassID"].ToString();
				}
				if(ds.Tables[0].Rows[0]["State"]!=null && ds.Tables[0].Rows[0]["State"].ToString()!="")
				{
					model.State=int.Parse(ds.Tables[0].Rows[0]["State"].ToString());
				}
				if(ds.Tables[0].Rows[0]["XiaoQuCount"]!=null && ds.Tables[0].Rows[0]["XiaoQuCount"].ToString()!="")
				{
					model.XiaoQuCount=int.Parse(ds.Tables[0].Rows[0]["XiaoQuCount"].ToString());
				}
				if(ds.Tables[0].Rows[0]["RoomCount"]!=null && ds.Tables[0].Rows[0]["RoomCount"].ToString()!="")
				{
					model.RoomCount=int.Parse(ds.Tables[0].Rows[0]["RoomCount"].ToString());
				}
				if(ds.Tables[0].Rows[0]["ClassCount"]!=null && ds.Tables[0].Rows[0]["ClassCount"].ToString()!="")
				{
					model.ClassCount=int.Parse(ds.Tables[0].Rows[0]["ClassCount"].ToString());
				}
				if(ds.Tables[0].Rows[0]["UploadsCount"]!=null && ds.Tables[0].Rows[0]["UploadsCount"].ToString()!="")
				{
					model.UploadsCount=int.Parse(ds.Tables[0].Rows[0]["UploadsCount"].ToString());
				}
				if(ds.Tables[0].Rows[0]["OverXiaoQuCount"]!=null && ds.Tables[0].Rows[0]["OverXiaoQuCount"].ToString()!="")
				{
					model.OverXiaoQuCount=int.Parse(ds.Tables[0].Rows[0]["OverXiaoQuCount"].ToString());
				}
				if(ds.Tables[0].Rows[0]["OverRoomCount"]!=null && ds.Tables[0].Rows[0]["OverRoomCount"].ToString()!="")
				{
					model.OverRoomCount=int.Parse(ds.Tables[0].Rows[0]["OverRoomCount"].ToString());
				}
				if(ds.Tables[0].Rows[0]["OverClassCount"]!=null && ds.Tables[0].Rows[0]["OverClassCount"].ToString()!="")
				{
					model.OverClassCount=int.Parse(ds.Tables[0].Rows[0]["OverClassCount"].ToString());
				}
				if(ds.Tables[0].Rows[0]["OverUploadsCount"]!=null && ds.Tables[0].Rows[0]["OverUploadsCount"].ToString()!="")
				{
					model.OverUploadsCount=int.Parse(ds.Tables[0].Rows[0]["OverUploadsCount"].ToString());
				}
				if(ds.Tables[0].Rows[0]["Remark"]!=null && ds.Tables[0].Rows[0]["Remark"].ToString()!="")
				{
					model.Remark=ds.Tables[0].Rows[0]["Remark"].ToString();
				}
				if(ds.Tables[0].Rows[0]["Remark2"]!=null && ds.Tables[0].Rows[0]["Remark2"].ToString()!="")
				{
					model.Remark2=int.Parse(ds.Tables[0].Rows[0]["Remark2"].ToString());
				}
				if(ds.Tables[0].Rows[0]["Remark3"]!=null && ds.Tables[0].Rows[0]["Remark3"].ToString()!="")
				{
					model.Remark3=int.Parse(ds.Tables[0].Rows[0]["Remark3"].ToString());
				}
				return model;
			}
			else
			{
				return null;
			}
		}

		/// <summary>
		/// 获得数据列表
		/// </summary>
		public DataSet GetList(string strWhere)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select ID,MembeLoginName,MemberName,MembePassWord,Phone,QQ,Pic,Sex,Birthday,Address,Description,CreateUserID,CreateTime,ModifiedUserID,ModifiedDateTime,UserTypeID,SchoolID,RoomID,ClassID,State,XiaoQuCount,RoomCount,ClassCount,UploadsCount,OverXiaoQuCount,OverRoomCount,OverClassCount,OverUploadsCount,Remark,Remark2,Remark3 ");
			strSql.Append(" FROM Users ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			return DbHelperSQL.Query(strSql.ToString());
		}

		/// <summary>
		/// 获得前几行数据
		/// </summary>
		public DataSet GetList(int Top,string strWhere,string filedOrder)
		{
			StringBuilder strSql=new StringBuilder();
			strSql.Append("select ");
			if(Top>0)
			{
				strSql.Append(" top "+Top.ToString());
			}
			strSql.Append(" ID,MembeLoginName,MemberName,MembePassWord,Phone,QQ,Pic,Sex,Birthday,Address,Description,CreateUserID,CreateTime,ModifiedUserID,ModifiedDateTime,UserTypeID,SchoolID,RoomID,ClassID,State,XiaoQuCount,RoomCount,ClassCount,UploadsCount,OverXiaoQuCount,OverRoomCount,OverClassCount,OverUploadsCount,Remark,Remark2,Remark3 ");
			strSql.Append(" FROM Users ");
			if(strWhere.Trim()!="")
			{
				strSql.Append(" where "+strWhere);
			}
			strSql.Append(" order by " + filedOrder);
			return DbHelperSQL.Query(strSql.ToString());
		}

        /*
        /// <summary>
        /// 分页获取数据列表
        /// </summary>*/
        public DataSet GetList(int PageSize,int PageIndex,string strWhere)
		{
			SqlParameter[] parameters = {
					new SqlParameter("@tblName", SqlDbType.VarChar, 255),
					new SqlParameter("@fldName", SqlDbType.VarChar, 255),
					new SqlParameter("@PageSize", SqlDbType.Int),
					new SqlParameter("@PageIndex", SqlDbType.Int),
					new SqlParameter("@IsReCount", SqlDbType.Bit),
					new SqlParameter("@OrderType", SqlDbType.Bit),
					new SqlParameter("@strWhere", SqlDbType.VarChar,1000),
					};
			parameters[0].Value = "Users";
			parameters[1].Value = "ID";
			parameters[2].Value = PageSize;
			parameters[3].Value = PageIndex;
			parameters[4].Value = 0;
			parameters[5].Value = 0;
			parameters[6].Value = strWhere;	
			return DbHelperSQL.RunProcedure("UP_GetRecordByPage",parameters,"ds");
		}

		#endregion  Method
	}
}

